use Net::FTP;
$ftp = Net::FTP->new("ftp.gnu.org", Debug => 0)
    or die "Cannot connect to ftp.gnu.org: $@";
$ftp->login("anonymous",'-anonymous@')
    or die "Cannot login ", $ftp->message;
$ftp->cwd("/gnu")
    or die "Cannot change working directory ", $ftp->message;
$ftp->list(".")
    or die "get failed ", $ftp->message;
$ftp->quit;
